{% load i18n %}
<tr>
  <td class="first"></td>
  <td>
    <input id="message_id" type="checkbox" onclick="javascript:inhouse.toggle_row_color(this, 'message-list');" title="" value="{{ message.id }}" name="message_ids"/>
  </td>
  <td>
    {% if not message.is_read %}
      <strong>
        {{ message.sender.id|show_user_link }}
      </strong>
    {% else %}
      {{ message.sender.id|show_user_link }}
    {% endif %}
  </td>
  <td>
    <a href="{% url inhouse.views.show_message message.id %}">
    {% if not message.is_read %}
      <strong>
        {{ message.title }}
      </strong>
    {% else %}
      {{ message.title }}
    {% endif %}
    </a>
   </td>
  <td>
    {% if not message.is_read %}
      <strong>
        {{ message.text|truncatewords:10 }}
      </strong>
    {% else %}
      {{ message.text|truncatewords:10 }}
    {% endif %}
  </td>
  <td class="last">
    {% if not message.is_read %}
      <strong>{{ message.created }}</strong>
    {% else %}
       {{ message.created }}
    {% endif %}
  </td>
</tr>
